<template>
  <div class="clearFix">
      <input type="text"
        readonly="readonly"
        class="keyWord"
        @click="showListHandle"
        :value="title"
      />
      <!-- <input type="button" value="Go"> -->
  </div>
</template>
<script>
export default {
  name: 'selectsInput',
  // props 获取从父组件传递过来的数据
  props: ['isShow', 'title'],
  computed: {
    initShow(){
      return this.isShow
    }
  },
  methods: {
    showListHandle(){
      // 提交事件给父组件 $emit(事件，参数)
      this.$emit('update:isShow', !this.initShow);
    }
  }
}
</script>
<style scoped>
  * {
        text-align: center;
    }
</style>
